package com.atguigu.gmall.web.feign;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("service-product")//调用哪个微服务
@RequestMapping("/api/inner/rpc/product")

public interface CategoryFeignClient {

    @GetMapping("/category/tree")
    Result<List<CategoryTreeVo>> getCategoryTrees();



}
